package com.bm.api.service;

import com.bm.common.dto.DogkillDto;
import com.bm.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * .=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
 * |                     ______                     |
 * |                  .-"      "-.                  |
 * |                 /            \                 |
 * |     _          |              |          _     |
 * |    ( \         |,  .-.  .-.  ,|         / )    |
 * |     > "=._     | )(__/  \__)( |     _.=" <     |
 * |    (_/"=._"=._ |/     /\     \| _.="_.="\_)    |
 * |           "=._"(_     ^^     _)"_.="           |
 * |               "=\__|IIIIII|__/="               |
 * |              _.="| \IIIIII/ |"=._              |
 * |    _     _.="_.="\          /"=._"=._     _    |
 * |   ( \_.="_.="     `--------`     "=._"=._/ )   |
 * |    > _.="                            "=._ <    |
 * |   (_/                                    \_)   |
 * |                                                |
 * '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='
 * -----------------代码的搬运工-----------------
 *
 * @Date: 2022/07/21/14:08
 */
@FeignClient(value = "bm-Server")
public interface DogkillService {
    @GetMapping("/server/dogkill/selectnums.do")
    R selectnums(@RequestParam int roomid);
    @PostMapping("/server/dogkill/save.do")
    R save(@RequestBody DogkillDto dto);
    @PostMapping("/server/dogkill/outroom.do")
    R outroom(@RequestBody DogkillDto dto);
    @GetMapping("/server/dogkill/gameStart.do")
    R gameStart(@RequestParam int roomid);
    @GetMapping("/server/dogkill/selectByname")
    R selectByname(@RequestParam int uid);
    @GetMapping("/server/dogkill/wolfkillpeople")
    R wolfkillpeople(@RequestParam int uid);
    @GetMapping("/server/dogkill/nvwusave.do")
    R nvwusave(@RequestParam int roomid,@RequestParam String save);
    @GetMapping("/server/dogkill/nvwukill.do")
    R nvwukill(@RequestParam int roomid,@RequestParam String kill,@RequestParam int uid);
    @GetMapping("/server/dogkill/deleteByid.do")
    R deleteByid(@RequestParam int roomid,@RequestParam int uid);
    @GetMapping("/server/dogkill/isgameoverhao.do")
    R isgameoverhao(@RequestParam int roomid);
    @GetMapping("/server/dogkill/isgameoverhuai1.do")
    R isgameoverhuai1(@RequestParam int roomid);
    @GetMapping("/server/dogkill/isgameoverhuai2.do")
    R isgameoverhuai2(@RequestParam int roomid);
    @GetMapping("/server/dogkill/toupiao.do")
    R toupiao(@RequestParam int roomid,@RequestParam int uid);
}
